<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<script>
	//一切对象继承Object      constructor继承至Object
	//Object的属性
	//1.constructor 指向构造函数
	
//var arr=[];
//alert(arr.constructor)

//var str=new String('fdsf')
//var str='fsdfj';
//alert(str.constructor)

var arr=[];
alert(arr instanceof Array)

//****疑问***
var str='1fds'
alert(str instanceof String)	//false
var str=new String('1fds')
alert(str instanceof String)	//true






//function ren(){
//	this.name='zs';
//	this.age=12;
//	this.sex='man';	
//};
//ren.prototype={
//	say:function(){
//		alert('123')	
//	}
//}
//var ren1=new ren();
//alert(ren1.constructor)











</script>
</body>
</html>
